<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改用户信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-workflow-edit" th:object="${sysWorkflow}">
            <input name="workflowId" th:field="*{workflowId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">流程编码：</label>
                <div class="col-sm-8">
                    <input name="workflowCode" th:field="*{workflowCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">父级流程编码：</label>
                <div class="col-sm-8">
                    <input name="parentWorkflowCode" th:field="*{parentWorkflowCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">流程/节点名称：</label>
                <div class="col-sm-8">
                    <input name="workflowName" th:field="*{workflowName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">流程状态：</label>
                <div class="col-sm-8">
                    <input name="workflowStatus" th:field="*{workflowStatus}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">流程版本：</label>
                <div class="col-sm-8">
                    <input name="workflowVersion" th:field="*{workflowVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">下一节点编码：</label>
                <div class="col-sm-8">
                    <input name="nextFlowcode" th:field="*{nextFlowcode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">触发条件：</label>
                <div class="col-sm-8">
                    <input name="workflowCondition" th:field="*{workflowCondition}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="workflowRemark" class="form-control"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/workflow";
        $("#form-workflow-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-workflow-edit').serialize());
            }
        }
    </script>
</body>
</html>